const express = require('express');
const router = express.Router();

router.get('/forCurrentUser', (req, res) => {
    const content = [];
    for(let i = 0; i < 50; i++) content.push({
        id: `${i + 1}`,
        dealerId: 'string',
        brandCode: 'string',
        brandName: 'string',
        country: 'string',
        year: 1,
        month: 2,
        currency: 1,
        dealerCode: 'string',
        dealerName: 'string',
        stockKind: 'string',
        stockPrice: '3',
        saleKind: '4',
        salePrice: '5',
        stockToUseRatio: '6'

    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 50; i++) content.push({
        marketDepartmentName: 'string',
        dealerCode: 'string',
        year: 0,
        month: 0,
        partCode: 'string',
        partName: 'string',
        partInQuantity: 0,
        partOutQuantity: 0,
        stockQuantity: 0,
        purchaseCurrency: 0,
        purchasePrice: 0,
        saleCurrency: 0,
        salePrice: 'string',
        updateTime: '2020-03-31T02:47:34.511Z',
        invoicedDate: 'string',
        sluggishQuantity: 0
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 10,
        }
    });
});
router.get('/export/forCurrentUser', (req, res) => {
    res.json({
        message: '导出'
    });
});
router.get('/export/forDetail', (req, res) => {
    res.json({
        message: '导出明细'
    });
});
module.exports = router;
